package com.becca.cake.model.goods;

import java.io.Serializable;
import java.util.Date;

/**
 * 购物车实体
 * @copyright  尊星(上海)信息科技有限公司
 * @author hejinguo
 * @date 2016年4月10日 上午1:27:47
 */
public class GoodsCarModel implements Serializable {
    /**  */
    private static final long  serialVersionUID           = 6809204903296080702L;

    /**状态(0:有效)*/
    public static final Byte   GOODS_CAR_STATUS_ENABLE    = 0;
    /**状态(1:无效)*/
    public static final Byte   GOODS_CAR_STATUS_DISENABLE = 1;

    public static final String ID_NULL                    = "购物车编号不能为空";

    /**商品编号不能为空*/
    public static final String GOODS_ID_NULL              = "商品编号不能为空";
    /**商品属性不能为空*/
    public static final String GOODS_PRICE_SIZE_NULL      = "商品属性不能为空";
    /**商品数量不能为空*/
    public static final String GOODS_NUMBER_NULL          = "商品数量不能为空";
    /**商品数量不能小于1*/
    public static final String GOODS_NUMBER_NOT_LESS_ONE  = "商品数量不能小于1";

    /**购物车商品信息不存在*/
    public static final String GOODSCAR_NOT_EXISTS        = "购物车商品信息不存在";

    /**购物车商品信息不能为空*/
    public static final String GOODSCAR_IS_NULL           = "购物车商品信息不能为空";

    private Integer            id;
    /**用户ID*/
    private Integer            userId;
    /**商品ID*/
    private Integer            goodsId;
    /**商品编码*/
    private String             goodsCode;
    /**商品名称*/
    private String             goodsName;
    /**商品特殊属性ID*/
    private Integer            goodsPriceSizeId;
    /**商品尺寸*/
    private String             goodsSize;
    /**商品重量*/
    private String             goodsWeight;
    /**商品单价*/
    private Double             goodsPrice;
    /**购买数量*/
    private Integer            goodsNumber;
    /**商品属性(选择项以json格式保存)*/
    private String             goodsAttrs;
    /**状态(0:有效 1:无效)*/
    private Byte               carStatus;
    /**创建时间*/
    private Date               createdDate;
    /**创建人*/
    private String             createdName;
    /**修改时间*/
    private Date               updatedDate;
    /**修改人*/
    private String             updatedName;

    /***********************************************************/
    /**商品展示图*/
    private String             goodsPic;
    /**商品副标题*/
    private String             goodsSubName;
    /**购物车ID*/
    private Integer            goodsCarId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsCode() {
        return goodsCode;
    }

    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Integer getGoodsPriceSizeId() {
        return goodsPriceSizeId;
    }

    public void setGoodsPriceSizeId(Integer goodsPriceSizeId) {
        this.goodsPriceSizeId = goodsPriceSizeId;
    }

    public String getGoodsSize() {
        return goodsSize;
    }

    public void setGoodsSize(String goodsSize) {
        this.goodsSize = goodsSize;
    }

    public String getGoodsWeight() {
        return goodsWeight;
    }

    public void setGoodsWeight(String goodsWeight) {
        this.goodsWeight = goodsWeight;
    }

    public Double getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(Double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public Integer getGoodsNumber() {
        return goodsNumber;
    }

    public void setGoodsNumber(Integer goodsNumber) {
        this.goodsNumber = goodsNumber;
    }

    public String getGoodsAttrs() {
        return goodsAttrs;
    }

    public void setGoodsAttrs(String goodsAttrs) {
        this.goodsAttrs = goodsAttrs;
    }

    public Byte getCarStatus() {
        return carStatus;
    }

    public void setCarStatus(Byte carStatus) {
        this.carStatus = carStatus;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    public String getCreatedName() {
        return createdName;
    }

    public void setCreatedName(String createdName) {
        this.createdName = createdName;
    }

    public Date getUpdatedDate() {
        return updatedDate;
    }

    public void setUpdatedDate(Date updatedDate) {
        this.updatedDate = updatedDate;
    }

    public String getUpdatedName() {
        return updatedName;
    }

    public void setUpdatedName(String updatedName) {
        this.updatedName = updatedName;
    }

    public String getGoodsPic() {
        return goodsPic;
    }

    public void setGoodsPic(String goodsPic) {
        this.goodsPic = goodsPic;
    }

    public String getGoodsSubName() {
        return goodsSubName;
    }

    public void setGoodsSubName(String goodsSubName) {
        this.goodsSubName = goodsSubName;
    }

    public Integer getGoodsCarId() {
        return goodsCarId;
    }

    public void setGoodsCarId(Integer goodsCarId) {
        this.goodsCarId = goodsCarId;
    }

    @Override
    public String toString() {
        return "GoodsCarDO [id=" + id + ", userId=" + userId + ", goodsId=" + goodsId
               + ", goodsCode=" + goodsCode + ", goodsName=" + goodsName + ", goodsPriceSizeId="
               + goodsPriceSizeId + ", goodsSize=" + goodsSize + ", goodsWeight=" + goodsWeight
               + ", goodsPrice=" + goodsPrice + ", goodsNumber=" + goodsNumber + ", goodsAttrs="
               + goodsAttrs + ", carStatus=" + carStatus + ", createdDate=" + createdDate
               + ", createdName=" + createdName + ", updatedDate=" + updatedDate + ", updatedName="
               + updatedName + "]";
    }

}
